package com.wman.sheep.common.base;

import com.blankj.utilcode.util.StringUtils;

import java.io.Serializable;

public class BaseEntity implements Serializable {

    /**
     * code : 0
     * message :
     * data : [{"id":87,"title":"房源标题87","imagePath":"","houseTypeStr":"4室2厅2卫","area":120,"tagList":["满两年","地铁","随时看房"],"price":250,"averagePrice":2.08,"dateStr":"11月26日","communityName":"小区名","dataType":6,"hasImport":false,"isMajor":false,"areaId":1}]
     * errorMessage :
     * stackTrace :
     * currentUser :
     */

    private int code;
    private String message;
    private String errorMessage;
    private String stackTrace;
    private String currentUser;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getErrorMessage() {
        if (StringUtils.isEmpty(errorMessage)) {
            return "";
        }
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getStackTrace() {
        return stackTrace;
    }

    public void setStackTrace(String stackTrace) {
        this.stackTrace = stackTrace;
    }

    public String getCurrentUser() {
        return currentUser;
    }

    public void setCurrentUser(String currentUser) {
        this.currentUser = currentUser;
    }
}